package com.shop.blockquenue;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Executors;

public class SyncAndReentrantLock {

    public static void main(String[] args) {

        Executors.newFixedThreadPool(1);
        BlockingQueue<String> quenue = new ArrayBlockingQueue<>(3) ;
        System.out.println(quenue.poll());
    }
}
